// CESkinDlgDllTestDlg.cpp : implementation file
//

#include "stdafx.h"
#include "CESkinDlgDllTest.h"
#include "CESkinDlgDllTestDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
__declspec(dllimport) CString showDlg();
__declspec(dllimport) int showInfoDlg(CString strInfo,UINT type=1);
__declspec(dllimport) int showGgyyDlg(CString strInfo);
/////////////////////////////////////////////////////////////////////////////
// CCESkinDlgDllTestDlg dialog

CCESkinDlgDllTestDlg::CCESkinDlgDllTestDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CCESkinDlgDllTestDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CCESkinDlgDllTestDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}

void CCESkinDlgDllTestDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CCESkinDlgDllTestDlg)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CCESkinDlgDllTestDlg, CDialog)
	//{{AFX_MSG_MAP(CCESkinDlgDllTestDlg)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
	ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
	ON_BN_CLICKED(IDC_BUTTON4, OnButton4)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCESkinDlgDllTestDlg message handlers

BOOL CCESkinDlgDllTestDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// Set the icon for this dialog.  The framework does this automatically
	//  when the application's main window is not a dialog
	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon
	
	CenterWindow(GetDesktopWindow());	// center to the hpc screen

	// TODO: Add extra initialization here
	
	return TRUE;  // return TRUE  unless you set the focus to a control
}



void CCESkinDlgDllTestDlg::OnButton1() 
{
	// TODO: Add your control notification handler code here
	MessageBox(showDlg());
}

void CCESkinDlgDllTestDlg::OnButton2() 
{
	// TODO: Add your control notification handler code here
	showInfoDlg("test");
}

void CCESkinDlgDllTestDlg::OnButton3() 
{
	// TODO: Add your control notification handler code here
	showInfoDlg("test",2);
}

void CCESkinDlgDllTestDlg::OnButton4() 
{
	// TODO: Add your control notification handler code here
	showGgyyDlg("ggyy");
}
